package com.example.springboot01.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description : 类描述
 * Created by cyd on 2021-03-22 22:34:36
 */
@Data
@ConfigurationProperties(prefix = "person3")
@Component
@Validated
public class Person3 {
    @Email(message = "邮箱格式错误")
    private String name;
    private Integer age;

}
